package com.gmq.chapter01.priority;

/**
 * Created by gmq on 2017/08/11.
 *
 * @version 1.0
 * @since 2017/08/11 10:59
 */
public class RoleRun {

    public static void main(String[] args) {

        for (int i =0;i< 5;i++) {
            RoleThread1 thread1 = new RoleThread1();
            //thread1.setPriority(10);
            thread1.setPriority(1);
            thread1.start();

            RoleThread2 thread2 = new RoleThread2();
            //thread2.setPriority(1);
            thread2.setPriority(10);
            thread2.start();

        }
    }
}
